<!DOCTYPE html>
<!--[if IE 8 ]>    <html class="ie8" lang="en"> <![endif]-->
<!--[if IE 9 ]>    <html class="ie9" lang="en"> <![endif]-->
<!--[if IE 10 ]>    <html class="ie10" lang="en"> <![endif]-->
<!--[if (gt IE 10)|!(IE)]><!--> <html class="" lang="en"> <!--<![endif]-->
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta charset="utf-8" />
		<title>Framework</title>
		<meta name="author" content="WapiSasa" />
		<meta name="revisit-after" content="7 days" />
		<meta name="robots" content="index, follow" />
		
		<link rel="shortcut icon" href="/favicon.ico" />
		<link rel="stylesheet" href="<?php echo ASSETS_CSS; ?>lib/screen.css" />
		
		<!--[if IE 8]>
			<script src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
			<script src="<?php echo ASSETS_JS; ?>lib/other/html5shiv.js" type="text/javascript"></script>
		<![endif]-->

	</head>
	<body class="<?php echo $page_name ?> <?php echo $sub_nav; ?>">
		
		<div class="container <?php echo $page_name ?>">
			<?php require($view);?>
		</div>
		<div class="container end-bar"></div>

		<!-- REQUIRED: Library Files -->
		<script src="<?php echo ASSETS_JS; ?>lib/prototype/prototype.js" type="text/javascript"></script>
		<script src="<?php echo ASSETS_JS; ?>lib/prototype/scriptaculous/scriptaculous.js" type="text/javascript"></script>
		<script src="<?php echo ASSETS_JS; ?>lib/jquery/jquery.min.js" type="text/javascript"></script>
		<script src="<?php echo ASSETS_JS; ?>lib/other/modernizr-2.6.2.js" type="text/javascript"></script>
		<script src="<?php echo ASSETS_JS; ?>lib/other/effect.transition.easing.js" type="text/javascript"></script>
		
		<!-- REQUIRED: Site/APP Base files -->
		<script src="<?php echo ASSETS_JS; ?>core.site.js" type="text/javascript"></script>
		
		<!-- BOOTSTRAP: Add all component JS here -->
		<script src="<?php echo ASSETS_JS; ?>lib/bootstrap/bootstrap.min.js" type="text/javascript"></script>
		<script src="<?php echo ASSETS_JS; ?>lib/bootstrap/button.js" type="text/javascript"></script>
		
		<!-- EXTRA COMPONENTS: Add all extras here -->
		<!--script src="<?php echo ASSETS_JS; ?>lib/jquery/jquery.bbq.min.js" type="text/javascript"> // jQuery BBQ </script-->
		

		<!-- OPTIONAL: Site/APP Specific files -->
		<script src="<?php echo ASSETS_JS; ?>core.app.js" type="text/javascript"> // App based JS </script>
		<script src="<?php echo ASSETS_JS; ?>core.scroll.js" type="text/javascript"> // ScrollWatch JS </script>
		<script src="<?php echo ASSETS_JS; ?>core.resize.js" type="text/javascript"> // ResizeWatch JS </script>
		
		<?php
			// If the site is in development mode, then include a special core.development.js to the page also.
			// FOR DEBUG PURPOSES
			(ENVIRONMENT=='DEVELOPMENT')?array_push($inc_js_array, ASSETS_JS.'core.development.js'):null;
		
			if(is_array($inc_js_array)&&!empty($inc_js_array)):
				foreach($inc_js_array as $js):
		?>
					<script src="<?php echo $js; ?>" type="text/javascript"></script>
		<?php
				endforeach;
			endif;
		?>

	</body>
</html>